package com.cheer.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author cheer
 */
@Data
public class OaLearnPeriodUpdateDTO {

    @NotNull(message = "Id不能为空")
    private Integer id;

    @NotBlank(message = "季不能为空")
    @Length(max = 50, message = "季字符数不能大于50")
    private String name;

    @NotBlank(message = "消息内容不能为空")
    @Length(max = 50, message = "描述字符数不能大于50")
    private String describe;

}
